import request from '@/utils/request'

// 获取所有数据
export function getGoodsClassApi() {
    return request({
        url: '/ClassificationApi/getClassificationTreeList?TpId=-1&name=&Lv=-2',
        method: 'get',

    })
}

// ClassificationApi/getClassificationList?pld=1&name=
// 获取详细的数据
export function getGoodsClassDataApi(id) {
    return request({
        url: `/ClassificationApi/getClassificationList?pId=${id}&name=`,
        method: 'get',

    })
}
export function addGoodsClassApi(id) {
    return request({
        url: `/ClassificationApi/saveClassificationInfo?pId=${id}&name=`,
        method: 'post',

    })
}


